package com.example.falvback.exception;

import lombok.Getter;

/**
 * 功能：
 * 作者：chen
 * 日期：2023/10/2410:49
 */
@Getter
public class ServiceException extends RuntimeException {

    private final String  code;

    public ServiceException(String msg) {
        super(msg);
        this.code = "500";//设置代码默认500
    }

    public ServiceException(String code,String msg) {
        super(msg);
        this.code = code;
    }
}